/*
 *    Copyright 2008-2009 The PoCo Team
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package com.asemantics.poco;

import java.net.URL;
import java.util.ArrayList;
import java.util.List;

import lombok.Data;

/**
 * 
 * @author Simone Tripodi
 * @version $Id: Activity.java 223 2009-12-19 21:32:32Z simone.tripodi@gmail.com $
 */
@Data
public final class Activity {

    private String appId;

    private String body;

    private String bodyId;

    private String externalId;

    private String id;

    private long postedTime;

    private double priority;

    private URL streamFaviconUrl;

    private URL streamSourceUrl;

    private String streamTitle;

    private URL streamUrl;

    private String title;

    private String titleId;

    private URL url;

    private String userId;

    private final List<MediaItem> mediaItems = new ArrayList<MediaItem>();

    public void addMediaItem(MediaItem mediaItem) {
        this.mediaItems.add(mediaItem);
    }

}
